﻿using CKS.PLC.Core.Reader;
using CKS.Schedule;
using Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CKS.PLC.Core.CronJob
{
    /// <summary>
    /// 打包完成回调上位系统
    /// </summary>
    [Schedule]
    public class CallbackUpSystemJob : CronJobBase
    {
        public CallbackUpSystemJob() : base("打包完成回调上位系统", "0/1 * * * * ?")
        {


        }

        protected override async Task ExecuteAsync(CancellationToken cancellationToken)
        {

            while (!cancellationToken.IsCancellationRequested)
            {

                //检查已完成待上传的任务单，进行上传


                await Task.Delay(500);
            }


            await Task.CompletedTask;
        }
    }
}
